package com.mao.proxy.staticproxy;

public class SmsProxyService implements SmsService{
    SmsService smsService;
    public SmsProxyService(SmsService smsService) {
        this.smsService = smsService;
    }
    @Override
    public void send(String phone, String content) {
        beforeSend();
        smsService.send(phone,content);
        afterSend();
    }
    private void afterSend() {
        System.out.println("we can do something after the send method");
    }
    private void beforeSend() {
        System.out.println("we can do something before the send method");
    }


}
